package com.example.trackcircuitdiagnosis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
 import jakarta.persistence.*;
import lombok.Data;

@Data
@TableName("device")

@Schema(name = "device", description = "设备表")
public class DeviceEntity {


    @Column(name = "did")
    @TableId
    @Schema(description = "设备id")
    private int did;

    @Column(name = "name")
    @Schema(description = "设备名称")
    private String name;

    @Column(name = "mid")
    @Schema(description = "监测项目id")
    private int mid;



    @Column(name = "device_position")
    @Schema(description = "设备在区间上的相对位置")
    private int devicePosition;



    @Column(name = "area_id")
    @Schema(description = "区间id")
    private int areaId;




}
